package com.ruoyi.Warehouse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.Warehouse.mapper.InventorychecksMapper;
import com.ruoyi.Warehouse.domain.Inventorychecks;
import com.ruoyi.Warehouse.service.IInventorychecksService;
import com.ruoyi.common.core.text.Convert;

/**
 * 库存盘点记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
@Service
public class InventorychecksServiceImpl implements IInventorychecksService 
{
    @Autowired
    private InventorychecksMapper inventorychecksMapper;

    /**
     * 查询库存盘点记录表
     * 
     * @param checkId 库存盘点记录表主键
     * @return 库存盘点记录表
     */
    @Override
    public Inventorychecks selectInventorychecksByCheckId(Long checkId)
    {
        return inventorychecksMapper.selectInventorychecksByCheckId(checkId);
    }

    /**
     * 查询库存盘点记录表列表
     * 
     * @param inventorychecks 库存盘点记录表
     * @return 库存盘点记录表
     */
    @Override
    public List<Inventorychecks> selectInventorychecksList(Inventorychecks inventorychecks)
    {
        return inventorychecksMapper.selectInventorychecksList(inventorychecks);
    }

    /**
     * 新增库存盘点记录表
     * 
     * @param inventorychecks 库存盘点记录表
     * @return 结果
     */
    @Override
    public int insertInventorychecks(Inventorychecks inventorychecks)
    {
        return inventorychecksMapper.insertInventorychecks(inventorychecks);
    }

    /**
     * 修改库存盘点记录表
     * 
     * @param inventorychecks 库存盘点记录表
     * @return 结果
     */
    @Override
    public int updateInventorychecks(Inventorychecks inventorychecks)
    {
        return inventorychecksMapper.updateInventorychecks(inventorychecks);
    }

    /**
     * 批量删除库存盘点记录表
     * 
     * @param checkIds 需要删除的库存盘点记录表主键
     * @return 结果
     */
    @Override
    public int deleteInventorychecksByCheckIds(String checkIds)
    {
        return inventorychecksMapper.deleteInventorychecksByCheckIds(Convert.toStrArray(checkIds));
    }

    /**
     * 删除库存盘点记录表信息
     * 
     * @param checkId 库存盘点记录表主键
     * @return 结果
     */
    @Override
    public int deleteInventorychecksByCheckId(Long checkId)
    {
        return inventorychecksMapper.deleteInventorychecksByCheckId(checkId);
    }
}
